<ion-modal-view>
  <ion-header-bar class="bar bar-royal">
    <h1 class="title">选择{{property.name}}</h1>
    <div class="buttons">
      <button class="button button-icon ion-ios-close-empty" ng-click="modal.hide();"></button>
    </div>
    </ion-header-bar>
    <ion-content>
      <ion-list class="grid-response grid-radio">
      <ion-item ng-repeat="pv in property.value_set" class="grid-item">
          <ion-radio ng-if="property.name=='品牌'" ng-model="pv.enabled" ng-click="selectProperty(property.index,pv.name)">
            <img ng-src="{{ 'img/brand_logo/'+pv.logo+'.png' }}" />
            <span>{{pv.name}}</span>
            <span ng-if="property._id=='color'" class="color-box" style="background-color:{{pv.rgb}}"></span>
          </ion-radio>

          <ion-radio ng-if="property.name=='颜色'" ng-model="pv.enabled" ng-click="selectProperty(property.index,pv.name)">
            <span>{{pv.name}}</span>
            <span ng-if="property._id=='color'" class="color-box" style="background-color:{{pv.rgb}}"></span>
          </ion-radio>

          <ion-radio ng-if="property.name!='颜色' && property.name!='品牌'" ng-model="pv.enabled" ng-click="selectProperty(property.index,pv.name)">
            <span>{{pv.name}}</span>
          </ion-radio>

        </ion-item>
      </ion-list>
    </ion-content>
</ion-modal-view>
